import { http } from '@/utils/http/axios';

export function listWorkType(data = {}) {
  return http.request({
    url: '/admin/base/workType/list',
    method: 'get',
    data,
  });
}

export function pageWorkType(data = {}) {
  return http.request({
    url: '/admin/base/workType/page',
    method: 'post',
    data,
  });
}

export function addWorkType(data = {}) {
  return http.request({
    url: '/admin/base/workType/add',
    method: 'post',
    data,
  });
}

export function updateWorkType(data = {}) {
  return http.request({
    url: '/admin/base/workType/update',
    method: 'post',
    data,
  });
}

export function delWorkType(data = {}) {
  return http.request({
    url: '/admin/base/workType/delete',
    method: 'post',
    data,
  });
}

export function exportWorkType(data) {
  return http.request({
    url: '/admin/base/workType/export',
    method: 'post',
    data,
    responseType: 'blob',
  });
}
